public class Test{
	public static void main(String []args){
		System.out.println("new Person");
		Person person1 = new Person();
		System.out.println("new Patient");
		Patient patient1 = new Patient();
		System.out.println("new Doctor");
		Doctor doctor1 = new Doctor();
		System.out.println("new Clinic");
		Clinic clinic = new Clinic();
		System.out.println("Clinic add Patient");
		clinic.addPatient(patient1);
		System.out.println("Clinic hire Person");
		clinic.hire(person1);
		System.out.println("Clinic hire Doctor");
		clinic.hire(doctor1);
}
}
		